#pragma once
#include <deque>
using namespace std;

template	< TYPENAME T >
class CMyQueue
{
public:
	void	push	(T obj)					{ m_set.push_back(obj); }
	T		pop		(void)					{ if(size()) { T obj = *m_set.begin(); m_set.pop_front(); return obj; } return 0; }
	int		size	(void)					{ return m_set.size(); }
	void	clear	(void)					{ m_set.clear(); }
//	deque<T>&	QueryList()				{ return m_set; }
protected:
	typedef	deque<T>		QUEUE_SET;
	QUEUE_SET				m_set;
};



